package pers.qianyu.auth.service;

import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.*;
import pers.qianyu.auth.pojo.entity.*;
import pers.qianyu.auth.repository.*;

@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;

    public UserPO findByUsername(String username) {
        return userRepository.findByUsername(username).orElse(null);
    }
}
